﻿using Library.Core.Domain.Event;
using System;

namespace Synthesize.Common.Domain.Event
{
    public class SafeApiMonitorLogEvent : IEvent
    {
        /// <summary>
        /// Id
        /// </summary>
        public string Id
        {
            get; set;
        }

        /// <summary>
        /// 控制器名称
        /// </summary>
        public string ServiceName
        {
            get; set;
        }

        /// <summary>
        /// 控制器名称
        /// </summary>
        public string ControllerName
        {
            get; set;
        }

        /// <summary>
        /// Action名称
        /// </summary>
        public string ActionName
        {
            get; set;
        }

        /// <summary>
        /// action参数
        /// </summary>
        public string ActionParams
        {
            get; set;
        }

        /// <summary>
        /// 请求时间
        /// </summary>
        public DateTime RequestTime
        {
            get; set;
        }

        /// <summary>
        /// Http请求头
        /// </summary>
        public string HttpHeader
        {
            get; set;
        }

        /// <summary>
        /// 请求的IP地址
        /// </summary>
        public string RequestIp
        {
            get; set;
        }


        /// <summary>
        /// 请求路径
        /// </summary>
        public string RequestPath
        {
            get; set;
        }

        /// <summary>
        /// Http请求方式
        /// </summary>
        public string HttpMethod
        {
            get; set;
        }
    }
}
